home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- BorderStyle = 3 'Fixed Dialog
- Caption = "Disable"
- ClientHeight = 2460
- ClientLeft = 45
- ClientTop = 345
- ClientWidth = 3960
- ClipControls = 0 'False
- ControlBox = 0 'False
- Height = 2865
- Left = -15
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2460
- ScaleWidth = 3960
- Top = 0
- Width = 4080
- Begin VB.CommandButton cmdSaver
- Caption = "Disable Screen Saver"
- Height = 375
- Left = 2040
- TabIndex = 7
- Top = 1560
- Width = 1815
- End
- Begin VB.CommandButton cmdTrayClock
- Caption = "Hide Tray Clock"
- Height = 375
- Left = 120
- TabIndex = 3
- Top = 1560
- Width = 1815
- End
- Begin VB.CommandButton cmdCursor
- Caption = "Disable Mouse"
- Height = 375
- Left = 2040
- TabIndex = 6
- Top = 1080
- Width = 1815
- End
- Begin VB.CommandButton cmdDesktop
- Caption = "Hide Desktop"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 1080
- Width = 1815
- End
- Begin VB.CommandButton cmdStart
- Caption = "Hide Start Button"
- Height = 375
- Left = 2040
- TabIndex = 5
- Top = 600
- Width = 1815
- End
- Begin VB.CommandButton cmdTray
- Caption = "Hide Icon Tray"
- Height = 375
- Left = 2040
- TabIndex = 4
- Top = 120
- Width = 1815
- End
- Begin VB.CommandButton cmdEnd
- Caption = "End"
- Height = 375
- Left = 1080
- TabIndex = 8
- Top = 2040
- Width = 1815
- End
- Begin VB.CommandButton cmdSwitching
- Caption = "Disable Switching"
- Height = 375
- Left = 120
- TabIndex = 1
- Top = 600
- Width = 1815
- End
- Begin VB.CommandButton cmdTaskBar
- Caption = "Hide Taskbar"
- Height = 375
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 1815
- End
- Begin DisablePro.Disable Disable1
- Left = 3240
- Top = 1800
- _ExtentX = 900
- _ExtentY = 926
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub cmdCursor_Click()
- If cmdCursor.Caption = "Disable Mouse" Then
- Disable1.DisableMouse = True
- cmdCursor.Caption = "Enable Mouse"
- Else
- Disable1.DisableMouse = False
- cmdCursor.Caption = "Disable Mouse"
- End If
- End Sub
- Private Sub cmdDesktop_Click()
- If cmdDesktop.Caption = "Hide Desktop" Then
- Disable1.DisableDesktop = True
- cmdDesktop.Caption = "Show Desktop"
- ElseIf cmdDesktop.Caption = "Show Desktop" Then
- Disable1.DisableDesktop = False
- cmdDesktop.Caption = "Hide Desktop"
- End If
- End Sub
- Private Sub cmdEnd_Click()
- End
- 'Call Form_Unload(False)
- End Sub
- Private Sub cmdSaver_Click()
- If cmdSaver.Caption = "Disable Screen Saver" Then
- Disable1.DisableScreenSaver = True
- cmdSaver.Caption = "Enable Screen Saver"
- Else
- Disable1.DisableScreenSaver = False
- cmdSaver.Caption = "Disable Screen Saver"
- End If
- End Sub
- Private Sub cmdStart_Click()
- If cmdStart.Caption = "Hide Start Button" Then
- Disable1.DisableStartButton = True
- cmdStart.Caption = "Show Start Button"
- Else
- Disable1.DisableStartButton = False
- cmdStart.Caption = "Hide Start Button"
- End If
- End Sub
- Private Sub cmdSwitching_Click()
- If cmdSwitching.Caption = "Disable Switching" Then
- Disable1.DisableTaskSwitching = True
- cmdSwitching.Caption = "Enable Switching"
- Else
- Disable1.DisableTaskSwitching = False
- cmdSwitching.Caption = "Disable Switching"
- End If
- End Sub
- Private Sub cmdTaskBar_Click()
- If cmdTaskBar.Caption = "Hide Taskbar" Then
- Disable1.DisableTaskBar = True
- cmdTaskBar.Caption = "Show Taskbar"
- Else
- Disable1.DisableTaskBar = False
- cmdTaskBar.Caption = "Hide Taskbar"
- End If
- End Sub
- Private Sub cmdTray_Click()
- If cmdTray.Caption = "Hide Icon Tray" Then
- Disable1.DisableIconTray = True
- cmdTray.Caption = "Show Icon Tray"
- Else
- Disable1.DisableIconTray = False
- cmdTray.Caption = "Hide Icon Tray"
- End If
- End Sub
- Private Sub cmdTrayClock_Click()
- If cmdTrayClock.Caption = "Hide Tray Clock" Then
- Disable1.DisableTrayClock = True
- cmdTrayClock.Caption = "Show Tray Clock"
- Else
- Disable1.DisableTrayClock = False
- cmdTrayClock.Caption = "Hide Tray Clock"
- End If
- End Sub
- Private Sub Form_Load()
- If Disable1.DisableDesktop = True Then cmdDesktop.Caption = "Show Desktop" Else cmdDesktop.Caption = "Hide Desktop"
- If Disable1.DisableIconTray = True Then cmdTray.Caption = "Show Icon Tray" Else cmdTray.Caption = "Hide Icon Tray"
- If Disable1.DisableStartButton = True Then cmdStart.Caption = "Show Start Button" Else cmdStart.Caption = "Hide Start Button"
- If Disable1.DisableTaskBar = True Then cmdTaskBar.Caption = "Show Taskbar" Else cmdTaskBar.Caption = "Hide Taskbar"
- If Disable1.DisableMouse = True Then cmdCursor.Caption = "Enable Mouse" Else cmdCursor.Caption = "Disable Mouse"
- If Disable1.DisableTrayClock = True Then cmdTrayClock.Caption = "Show Tray Clock" Else cmdTrayClock.Caption = "Hide Tray Clock"
- 'If Disable1.DisableTaskSwitching = True Then cmdSwitching.Caption = "Enable Switching" Else cmdSwitching.Caption = "Disable Switching"
- End Sub
- Private Sub Form_Terminate()
- Call Form_Unload(False)
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- Disable1.DisableIconTray = False
- Disable1.DisableStartButton = False
- Disable1.DisableTaskBar = False
- Disable1.DisableTaskSwitching = False
- Disable1.DisableDesktop = False
- Disable1.DisableMouse = False
- Disable1.DisableScreenSaver = False
- End
- End Sub
-